﻿package com.PlantVsZombies.pass;

import java.io.Serializable;
import java.util.List;

public class PassMeta implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** 当前关卡 */
	private Integer passIndex;
	
	private Integer groupCount;
	
	private List<PassGroup> groups;
	

	public Integer getPassIndex() {
		return passIndex;
	}

	public void setPassIndex(Integer passIndex) {
		this.passIndex = passIndex;
	}

	public Integer getGroupCount() {
		return groups != null ? groups.size() : groupCount;
	}

	public void setGroupCount(Integer groupCount) {
		this.groupCount = groupCount;
	}

	public List<PassGroup> getGroups() {
		return groups;
	}

	public void setGroups(List<PassGroup> groups) {
		this.groups = groups;
	}
	
}
